# -*- coding: utf-8 -*-
"""
date: Wed Dec 12 10:24:13 2018
python: Anaconda 3.6.5
author: kanade
email: kanade@blisst.cn
"""
import numpy as np


a = np.linspace(0, 10, num=6)
# 设公差为d，则0 = 0 + d*0
#            10 = 0 + d*(num-1)
# 可以得出d = 2
print(a)
b = np.logspace(0, 10, num=11, base=2)
print(b)
# 起始值为 2 ** 0 终止值为 2 ** 10
# 设公比为q，则 2 ** 0 = 2 ** 0 * q ** 0
#              2 ** 10 = 2 ** 0 * q ** (num-1)
# 得到公比为 q = 2